#include <iostream>
using namespace std;
int main()
{
    int hours;
    double gross_pay, rate;
    rate = 0.1;
    hours = 12;
    if (hours > 40)
        gross_pay = rate * 40 + 1.5 * rate * (hours - 40);
    else
        gross_pay = rate * hours;
    cout << gross_pay;
    return 0;
}